<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <svg width="400" height="400" viewBox="0 0 100 100">

        <defs>
            <filter id="f0">
                <feImage href="../imgs/4.png" width="120" height="120" result="p2" preserveAspectRatio="xMidYMid slice" />
                <feBlend  in="p2" in2="SourceGraphic" />
            </filter>
        </defs>

        <image href="../imgs/3.png" x="0" y="0" height="100" width="100"  preserveAspectRatio="xMidYMid slice"  filter="url(#f0)"/>
    </svg>
    <svg width="400" height="400" viewBox="0 0 100 100">

        <defs>
            <filter id="f1">
                <feImage href="../imgs/4.png" width="120" height="120" result="p2" preserveAspectRatio="xMidYMid slice" />
                <feBlend  in="p2" in2="SourceGraphic" mode="multiply" />
            </filter>
        </defs>

        <image href="../imgs/3.png" x="0" y="0" height="100" width="100"  preserveAspectRatio="xMidYMid slice"  filter="url(#f1)"/>
    </svg>

    <svg width="400" height="400" viewBox="0 0 100 100">

        <defs>
            <filter id="f2">
                <feImage href="../imgs/4.png" width="120" height="120" result="p2" preserveAspectRatio="xMidYMid slice" />
                <feBlend  in="SourceGraphic" in2="p2" mode="screen" />
            </filter>
        </defs>

        <image href="../imgs/3.png" x="0" y="0" height="100" width="100"  preserveAspectRatio="xMidYMid slice"  filter="url(#f2)"/>
    </svg>

    <svg width="400" height="400" viewBox="0 0 100 100">

        <defs>
            <filter id="f3">
                <feImage href="../imgs/4.png" width="120" height="120" result="p2" preserveAspectRatio="xMidYMid slice" />
                <feBlend  in="p2" in2="SourceGraphic" mode="darken" />
            </filter>
        </defs>

        <image href="../imgs/3.png" x="0" y="0" height="100" width="100"  preserveAspectRatio="xMidYMid slice"  filter="url(#f3)"/>
    </svg>

    <svg width="400" height="400" viewBox="0 0 100 100">

        <defs>
            <filter id="f4">
                <feImage href="../imgs/4.png" width="120" height="120" result="p2" preserveAspectRatio="xMidYMid slice" />
                <feBlend  in="SourceGraphic" in2="p2" mode="lighten" />
            </filter>
        </defs>

        <image href="../imgs/3.png" x="0" y="0" height="100" width="100"  preserveAspectRatio="xMidYMid slice"  filter="url(#f4)"/>
    </svg>

    <svg width="400" height="400" viewBox="0 0 100 100">

        <defs>
            <filter id="f5">
                <feImage href="#r2" width="30" height="50" result="p2"/>
                <feBlend in="SourceGraphic"  in2="p2"/>
            </filter>
        </defs>

        <rect id="r1" x="10" y="10" width="30" height="50" fill="#f00" filter="url(#f5)"/>
        <rect id="r2" x="50" y="10" width="30" height="50" fill="#0f0"/>
    </svg>



    <script src="index.js"></script>
</body>
</html>